package cn.magictodo.weblog.common.domain.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * ip地址记录
 *
 * @author liu
 * @since 2024-03-25 16:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("t_ip")
public class IpDo {
    @TableId(type = IdType.AUTO)
    private Long id; //bigint(20) NOT NULL

    private String ip; //varchar(20) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'ip地址'

    private String province; //varchar(20) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '省'

    private String city; //varchar(20) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '市'

    private String country; //varchar(20) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'country'

    private LocalDateTime createTime; //datetime DEFAULT NULL COMMENT '创建时间'

    private LocalDateTime updateTime; //datetime DEFAULT NULL COMMENT '修改时间'

    private String isp; //varchar(20) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'isp'

    private Long visitView; //bigint(20) DEFAULT NULL COMMENT '日请求次数'

    private String area; //区

    private String net; //varchar(20) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'net'

}
